package edu.ccut.saturn.operation.database;

import java.sql.Connection;
import java.util.ArrayList;

import edu.ccut.saturn.component.SaturnData;
public class QueryByConditionWithPage {
	private static edu.ccut.saturn.basecomponent.database.facade.QueryByConditionWithPage facade = null;
	private static QueryByConditionWithPage instance  = new QueryByConditionWithPage();
    private QueryByConditionWithPage(){
    	facade = new edu.ccut.saturn.basecomponent.database.facade.QueryByConditionWithPage();
    };
    public static QueryByConditionWithPage getInstance(){
    	return instance;
    }
	
	public ArrayList<SaturnData> execute(String fullKey ,String condition,int startIndex,int endIndex,Connection conn) throws Exception {
		return ( ArrayList<SaturnData>)facade.execute(fullKey, condition, startIndex, endIndex, conn);
	}
}
